<?php
session_start();
if (!isset($_SESSION['username'][2]) || !isset($_SESSION['username'][1])) {
    header("Location: login.php");
    exit;
}
?>